import { createWebHashHistory, createRouter } from 'vue-router'


const routes  = [
    // 聊天界面
    {
        path: '/',
        name: "home",
        component: () => import("@/page/home/index.vue")
    },
    // 商品详情界面

    {
        path: '/goodsDetails',
        name: "goodsDetails",
        component: () => import("@/page/goodsDetails/index.vue"),
    },
    // 投诉界面

    {
        path: '/complainPage',
        name: "complainPage",
        component: () => import("@/page/complainPage/index.vue")
    },

]

// 创建路由实例

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
// 导出
export default router